﻿using System.ComponentModel.DataAnnotations;

namespace Pay.DTO {
    /// <summary>
    /// 发送短信请求信息
    /// </summary>
    public class send_model {
        public send_model() {
            code_size = 4;
        }

        /// <summary>
        /// 区号
        /// </summary>
        public string mobile_code { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "请填写手机号码")]
        //[StringLength(11, ErrorMessage = "手机号码必须是11位", MinimumLength = 11)]
        public string mobile { get; set; }
        /// <summary>
        /// 获取验证号的类型
        /// </summary>
        [Required(ErrorMessage = "获取验证号的类型必须有值")]
        public string use_type { get; set; }

        /// <summary>
        /// 验证码的位数
        /// </summary>
        public int code_size { get; set; }
    }

    /// <summary>
    /// 获取图形验证码，后再发短信
    /// </summary>
    public class open_send_model : send_model {
        public open_send_model() {
        }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "请填写验证码")]
        public string code { get; set; }
    }
    /// <summary>
    /// 南良验证码
    /// </summary>
    public class nl_send_model : send_model {
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "请填写验证码")]
        public string code { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        [Required(ErrorMessage = "请填写时间")]
        public string date { get; set; }
    }
    public class send_model2 {
        public send_model2() {
        }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 区号
        /// </summary>
        public string mobile_code { get; set; }
        /// <summary>
        /// 验证码的位数
        /// </summary>
        public string text { get; set; }
    }
}
